<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
<title></title>
<link href="<%=request.getContextPath()%>/css/tab.css" rel="stylesheet"
	type="text/css"></link>
<link href="<%=request.getContextPath()%>/css/style.css"
	rel="stylesheet" type="text/css"></link>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/jquery-1.5.1.min.js"></script>
<script type="text/javascript">
	$(document).ready(function() {
	});

	function checkInfo() {
		clearErrorInfo();
		if ($("#entname").val() == "") {
			$("#entnameerror").html("必填！");
			$("#entname").focus();
			return false;
		}
		if ($("#username").val() == "") {
			$("#usernameerror").html("必填！");
			$("#username").focus();
			return false;
		}
		if ($("#cardnum").val() == "") {
			$("#cardnumerror").html("必填！");
			$("#cardnum").focus();
			return false;
		}
		if ($("#businessenterprisenum1").val() == "") {
			$("#businessenterprisenum1error").html("必填！");
			$("#businessenterprisenum1").focus();
			return false;
		}
		if ($("#certType").val() == 5 && $("#usbkeyid").val() == "") {
			$("#usbkeyiderror").html("硬证书必填！");
			return false;
		}
		return true;
	}

	function clearErrorInfo() {
		$("#entnameerror").html("");
		$("#usernameerror").html("");
		$("#cardnumerror").html("");
		$("#businessenterprisenum1error").html("");
		$("#usbkeyiderror").html("");
	}
</script>
</head>
<body>
	<br />
	<br />
	<!--第一种形式-->

	<!--第二种形式-->
	<div id="tabs1" style="width: 680px">
		<div class="menu1box">
			<ul id="menu1">
				<li><a
					href="<%=request.getContextPath()%>/operator/operatorCertRequest.html">个人用户</a>
				</li>
				<li class="hover"><a href="#">企业用户</a></li>
			</ul>
		</div>
		<div class="main1box">
			<div class="main" id="main1">
				<font color="#7D9EC0"><I><b>企业用户申请</b> </I> </font>
				<ul class="block">

					<table width="100%" border="0" cellpadding="0" cellspacing="0">
						<tr>
							<td height="299">
								<form action="entUserCertAdd.html" method="post"
									onsubmit="return checkInfo();">
									<table width="90%" border=0 align="center" cellpadding="3"
										cellspacing="1" bgcolor="#cccccc">
										<tr>
											<td width="20%" class=list01>企业名称：</td>
											<td width="30%" class=list02><input id="entname"
												name="entname" maxlength="128" /> <font id="entnameerror"
												color="red"> </font></td>
											<td width="20%" class=list01>企业证书持有人姓名：</td>
											<td width="30%" class=list02><input id="username"
												name="username" maxlength="64" /> <font id="usernameerror"
												color="red"> </font></td>
										</tr>
										<tr>
											<td width="20%" class=list01>持有人证件类型：</td>
											<td width="30%" class=list02><select id="cardtype"
												name="cardtype">
													<c:forEach items="${cardTypeList}" var="cardType">
														<option value="${cardType.id}">${cardType.value}</option>
													</c:forEach>
											</select> <font color="red"> </font></td>
											<td width="20%" class=list01>持有人证件号码：</td>
											<td width="30%" class=list02><input id="cardnum"
												name="cardnum" maxlength="80" /> <font id="cardnumerror"
												color="red"> </font></td>
										</tr>
										<tr>
											<td width="20%" class=list01>证书申请方式：</td>
											<td width="30%" class=list02><select id="requesttype"
												name="requesttype">
													<option value="01">临柜申请</option>
													<option value="02">见证申请</option>
													<option value="03">视频申请</option>
													<option value="99">其它</option>
											</select> <font color="red"></font></td>
											<td width="20%" class=list02></td>
											<td width="30%" class=list02>
										</tr>
										<tr>
											<td width="20%" class=list01>企业机构证件1类型：</td>
											<td width="30%" class=list02><select
												id="businessenterprisetype1" name="businessenterprisetype1">
													<c:forEach items="${organTypeList}" var="organType">
														<option value="${organType.id}">${organType.value}</option>
													</c:forEach>
											</select> <font id="businessenterprisetype1error" color="red">
											</font></td>
											<td width="20%" class=list01>企业机构证件1号码：</td>
											<td width="30%" class=list02><input
												id="businessenterprisenum1" name="businessenterprisenum1"
												maxlength="128" /> <font id="businessenterprisenum1error"
												color="red"> </font></td>
										</tr>
										<tr>
											<td width="20%" class=list01>证件1发证机关：</td>
											<td width="30%" class=list02><input
												id="businessissuingauthority1"
												name="businessissuingauthority1" maxlength="128" /> <font
												color="red"></font></td>
											<td width="20%" class=list01>证件1失效时间：</td>
											<td width="30%" class=list02><input id="expirationtime1"
												name="expirationtime1" maxlength="14" /> <font color="red">
											</font></td>
										</tr>
										<tr>
											<td width="20%" class=list01>企业机构证件2类型：</td>
											<td width="30%" class=list02><select
												id="businessenterprisetype2" name="businessenterprisetype2">
													<option value="0"></option>
													<c:forEach items="${organTypeList}" var="organType">
														<option value="${organType.id}">${organType.value}</option>
													</c:forEach>
											</select> <font color="red"> </font></td>
											<td width="20%" class=list01>企业机构证件2号码：</td>
											<td width="30%" class=list02><input
												id="businessenterprisenum2" name="businessenterprisenum2"
												maxlength="128" /> <font color="red"> </font></td>
										</tr>
										<tr>
											<td width="20%" class=list01>证件2发证机关：</td>
											<td width="30%" class=list02><input
												id="businessissuingauthority2"
												name="businessissuingauthority2" maxlength="128" /> <font
												color="red"></font></td>
											<td width="20%" class=list01>证件2失效时间：</td>
											<td width="30%" class=list02><input id="expirationtime2"
												name="expirationtime2" maxlength="128" /> <font color="red">
											</font></td>
										</tr>
										<tr>
											<td width="20%" class=list01>企业机构证件3类型：</td>
											<td width="30%" class=list02><select
												id="businessenterprisetype3" name="businessenterprisetype3">
													<option value="0"></option>
													<c:forEach items="${organTypeList}" var="organType">
														<option value="${organType.id}">${organType.value}</option>
													</c:forEach>
											</select> <font color="red"> </font></td>
											<td width="20%" class=list01>企业机构证件3号码：</td>
											<td width="30%" class=list02><input
												id="businessenterprisenum3" name="businessenterprisenum3"
												maxlength="128" /> <font color="red"> </font></td>
										</tr>
										<tr>
											<td width="20%" class=list01>证件3发证机关：</td>
											<td width="30%" class=list02><input
												id="businessissuingauthority3"
												name="businessissuingauthority3" maxlength="128" /> <font
												color="red"></font></td>
											<td width="20%" class=list01>证件3失效时间：</td>
											<td width="30%" class=list02><input id="expirationtime3"
												name="expirationtime3" maxlength="128" /> <font color="red">
											</font></td>
										</tr>
										<tr>
											<td width="20%" class=list01>手机：</td>
											<td width="30%" class=list02><input id="mobilephone"
												name="mobilephone" maxlength="30" /> <font color="red">
											</font></td>
											<td width="20%" class=list01>邮件：</td>
											<td width="30%" class=list02><input id="mail"
												name="mail" maxlength="100" /> <font color="red"> </font></td>
										</tr>
										<tr>
											<td width="20%" class=list01>证书请求类型：</td>
											<td width="30%" class=list02><select id="certType"
												name="certType">
													<option value="4">企业普通软证书</option>
													<option value="5">企业普通硬证书</option>
											</select> <font color="red"> </font></td>
											<td width="20%" class=list01>USBKEYID：</td>
											<td width="30%" class=list02><input id="usbkeyid"
												name="usbkeyid" maxlength="30" /> <font id="usbkeyiderror" color="red">
											</font></td>
										</tr>
										<tr>
											<td width="" class=list03 colspan="4"><input
												type="submit" value="增 加" />
												&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input
												type="button" value="取 消" /></td>
										</tr>
									</table>
								</form>
							</td>
						</tr>
					</table>

				</ul>
			</div>
		</div>
	</div>
	<br />
	<br />
	<!--第三种形式-->

</body>
</html>

